﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using ZK.Led;

namespace ZK.CoalYardTransManage.LED
{
    public partial class Show : Form
    {
        System.Timers.Timer timer = null;
        private static readonly int secondCount = 20;
        private ZK.Led.LED Led = new ZK.Led.LED();
        public Show()
        {
            InitializeComponent();
            Led.LedBigInitialize();
        }

        /// <summary>
        /// 定时执行事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void TimedEvent(object sender, System.Timers.ElapsedEventArgs e)
        {
            //业务逻辑代码
            Led.LedBigInitialize();
            Led.BigScreenShow();
        }
        /// <summary>
        /// 点击显示
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button1_Click(object sender, EventArgs e)
        {
            ZK.Led.LED common = new ZK.Led.LED();
            common.LedSmallInitialize(textBox1.Text);
            common.LedPaly(textBox1.Text, richTextBox1.Text);
        }
        /// <summary>
        /// 窗口初始化加载
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void LEDShow_Load(object sender, EventArgs e)
        {
            //业务逻辑代码
            Led.LedBigInitialize();
            Led.BigScreenShow();
        }
    }
}
